# -*- coding: utf-8 -*-
# @File      :面向对象继承
# @Email     :15218701897@qq.com
# @Author    :liaogan
# @Datetime  :2022/4/27 9:53

class testA():
    def __init__(self):
        self.data=20

    def test1(self):
        print('输出a+b')

    def test2(self,a,b):
        print(a+b)



class testB(testA):
    def ttt(self,a,b):
        super(testB, self).test1()

        self.test1()

        self.test2(a,b)

if __name__ == '__main__':
    testB().ttt(4,6)
    print(testB().data)









    # print(testA().data)
    # print( testB().data )
    # testB().test1()
    # testB().test2(1,4)